package com.google.code.irouter.portal.server;

import com.google.appengine.api.users.UserServiceFactory;
import com.google.code.irouter.portal.client.rpc.account.AccountResult;
import com.google.code.irouter.portal.client.rpc.account.AccountService;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;

public class AccountServiceImpl extends RemoteServiceServlet implements
		AccountService {

	private static final long serialVersionUID = 5899264648419877009L;

	@Override
	public AccountResult logout() throws IllegalArgumentException {
		AccountResult accountResult = new AccountResult();
		accountResult.setUrl(UserServiceFactory.getUserService().createLogoutURL("/portal"));
		return accountResult;
	}
}
